home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1997: Best New Mac Games / Image(3).iso / Games / Grossology / demo.dxr / Main_hole_3_MainHall (MH).ls < prev    next >
Encoding:
Text File  |  1997-07-31  |  4.1 KB  |  169 lines

  1. on mouseUp
  2.   global Gingercsend, VanGinger, sound1
  3.   set Gingercsend to 0
  4.   sound stop 1
  5.   sound stop 2
  6.   if not VanGinger then
  7.     GingerSprites(40, 307, 440)
  8.     set VanGinger to 1
  9.     set x to 2
  10.     repeat while x < 25
  11.       set the visible of sprite x to 1
  12.       set x to x + 1
  13.     end repeat
  14.   end if
  15.   if sound1 <> 5 then
  16.     set sound1 to 2
  17.   end if
  18. end
  19.  
  20. on enterFrame
  21.   global firstenter, sound1, idlestart, speakagain, VanGinger, Gingercsend, firstmainhall, classfirst, CL, gz_szoveg
  22.   if firstmainhall = 1 then
  23.     set VanGinger to 0
  24.     set Gingercsend to 0
  25.     set the text of field "Hotspotname" to EMPTY
  26.     set sound1 to -1
  27.     set CL to 0
  28.     set firstmainhall to 0
  29.     set firstenter to 0
  30.     set speakagain to 1
  31.     set gz_szoveg to 9
  32.     varj(60)
  33.     puppetSound(1, "Tanarno")
  34.     updateStage()
  35.   else
  36.     if firstenter = 1 then
  37.       set the text of field "Hotspotname" to EMPTY
  38.       set firstenter to 0
  39.       set speakagain to 1
  40.       GingerSprites(40, 307, 440)
  41.       set VanGinger to 1
  42.       set x to 2
  43.       repeat while x < 25
  44.         set the visible of sprite x to 1
  45.         set x to x + 1
  46.       end repeat
  47.       updateStage()
  48.       if CL > 0 then
  49.         GingerAjanl(CL)
  50.         set sound1 to 2
  51.         set CL to 0
  52.       else
  53.         set sound1 to 2
  54.       end if
  55.       updateStage()
  56.     end if
  57.   end if
  58.   if soundBusy(2) then
  59.     set Gingercsend to 0
  60.   end if
  61.   if soundBusy(1) then
  62.     set Gingercsend to 1
  63.   end if
  64.   if not soundBusy(1) and not soundBusy(2) then
  65.     set Gingercsend to 0
  66.     case sound1 of
  67.       (-1):
  68.         set x to 2
  69.         repeat while x < 25
  70.           set the visible of sprite x to 1
  71.           set x to x + 1
  72.         end repeat
  73.         set sound1 to 0
  74.         GingerSprites(40, 307, 440)
  75.         set VanGinger to 1
  76.         puppetSound(1, "gh001")
  77.         updateStage()
  78.       0:
  79.         puppetSound(1, "gh002")
  80.         updateStage()
  81.         set sound1 to 1
  82.       1:
  83.         puppetSound(1, "gh003")
  84.         updateStage()
  85.         set sound1 to 2
  86.       2:
  87.         set idlestart to the timer
  88.         set sound1 to 3
  89.       3:
  90.         if (the timer - idlestart) > (30 * 60) then
  91.           set sound1 to 1
  92.         end if
  93.       4:
  94.         puppetSound(1, "gh007")
  95.         updateStage()
  96.         set sound1 to 1
  97.       5:
  98.         GingerStop()
  99.         go("Zits")
  100.     end case
  101.   end if
  102.   if VanGinger then
  103.     GingerWork(Gingercsend)
  104.   end if
  105. end
  106.  
  107. on exitFrame
  108.   global zene, sound1
  109.   set firsthotspot to 2
  110.   set lasthotspot to 15
  111.   set i to firsthotspot
  112.   repeat while not rollOver(i) and (i <= lasthotspot)
  113.     set i to i + 1
  114.   end repeat
  115.   case i of
  116.     2, 3, 13:
  117.       set hotspot to "Body Odor, Sweat & Smelly Feet"
  118.       set zene to "szag"
  119.     6, 7:
  120.       set hotspot to "Zits"
  121.       set zene to "pattan"
  122.     5:
  123.       set hotspot to "Boogers & Snot"
  124.       set zene to "hapci"
  125.     4:
  126.       set hotspot to "Spit & Saliva"
  127.       set zene to "kop"
  128.     8:
  129.       set hotspot to "Burps & Belches"
  130.       set zene to "bofog"
  131.     9:
  132.       set hotspot to "Barf"
  133.       set zene to "hany"
  134.     10:
  135.       set hotspot to "Poop, Farts & Diarrhea"
  136.       set zene to "fing"
  137.     11:
  138.       set hotspot to "Pee - Pee"
  139.       set zene to "pisa"
  140.     12, 14, 15:
  141.       set hotspot to "Scabs & Wounds"
  142.       set zene to "jaj"
  143.     otherwise:
  144.       set hotspot to " "
  145.       set zene to " "
  146.   end case
  147.   if sound1 <> 5 then
  148.     set the text of member "hotspotname" to hotspot
  149.     set the textFont of member "hotspotname" to "Arial"
  150.     set the textAlign of member "hotspotname" to "center"
  151.     set the textStyle of member "hotspotname" to "Bold"
  152.     if hotspot = "ZITS" then
  153.       set the visible of sprite 26 to 1
  154.       set the foreColor of member "hotspotname" to the foreColor of sprite 26
  155.       set the textSize of member "hotspotname" to 18
  156.     else
  157.       if the machineType = 256 then
  158.         set the textSize of member "hotspotname" to 18
  159.       else
  160.         set the textSize of member "hotspotname" to 14
  161.       end if
  162.       set the visible of sprite 26 to 0
  163.       set the foreColor of member "hotspotname" to 255
  164.     end if
  165.     set the text of field "Hotspotname" to the text of member "hotspotname"
  166.   end if
  167.   go(the frame)
  168. end
  169.